Entropy in thermodynamics and information theory